package com.app.common.adapter

import android.view.View
import androidx.recyclerview.widget.RecyclerView

open class SelectionViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
    private val view: SelectionItemView<Any> = itemView as SelectionItemView<Any>
    fun onSelectView(on:Boolean){
        view.onSelectView(on)
    }
    fun onSelect(isSelected:Boolean){
        view.onSelect(isSelected)
    }
    fun bindData(data:Any){
        view.bindData(data)
    }
    fun setDownloaded(downloaded:Boolean){
        view.setDownloaded(downloaded)
    }
}